import request from '../utils/request'

// 设备详情
export function getDeviceDetail (id) {
  return request({
    url: `/device/detail/${id}`,
    method: 'get'
  })
}

// 一物一码设备绑定
export function bindDevice (data) {
  return request({
    url: '/device/qrCode/relation/bind',
    method: 'post',
    data
  })
}

// 修改
export function updateDevice (data) {
  return request({
    url: '/device/detail/update',
    method: 'post',
    data
  })
}
